<template>
    <view
        @tap="__e"
        @touchmove.stop.prevent="__e"
        class="mask data-v-62c5eee3"
        :data-event-opts="[
            ['tap', [['cancel', ['$event']]]],
            ['touchmove', [['', ['$event']]]]
        ]"
    >
        <view @tap.stop.prevent="__e" class="mask-content animated bounceInUp data-v-62c5eee3" :data-event-opts="[['tap', [['', ['$event']]]]]">
            <view class="top-tab data-v-62c5eee3">
                <image class="top-button data-v-62c5eee3" src="https://img121.7dun.com/20230207NewImg/lingzhu/bangdanBg.png"></image>
            </view>
            <view @tap="__e" class="close data-v-62c5eee3" :data-event-opts="[['tap', [['cancel', ['$event']]]]]">
                <image class="data-v-62c5eee3" src="https://img121.7dun.com/20230207NewImg/wuxianshang/close.png"></image>
            </view>
            <scroll-view class="bangdan data-v-62c5eee3" :scrollY="true">
                <view class="data-v-62c5eee3" v-if="$root.g0">
                    <view class="bangdan-up data-v-62c5eee3">
                        <view class="bangdan-shangqi data-v-62c5eee3">上期领主榜单</view>
                        <view class="bangdan-arrow-down data-v-62c5eee3">
                            <view @tap="__e" class="bangdan-arrow-downOpen data-v-62c5eee3" :data-event-opts="[['tap', [['handleSQBoolClick', ['$event']]]]]" v-if="shangqiBool">
                                <view class="bangdan-arrow-downText data-v-62c5eee3">
                                    展开
                                    <text class="new-iconfont icon-arrow-down data-v-62c5eee3"></text>
                                </view>
                                <view class="bangdan-arrow-downBg data-v-62c5eee3"></view>
                            </view>
                            <view @tap="__e" class="bangdan-arrow-downOpen data-v-62c5eee3" :data-event-opts="[['tap', [['handleSQBoolClick', ['$event']]]]]" v-else>
                                <view class="bangdan-arrow-downText data-v-62c5eee3">
                                    收起
                                    <text class="new-iconfont icon-arrow-up data-v-62c5eee3"></text>
                                </view>
                                <view class="bangdan-arrow-downBg data-v-62c5eee3"></view>
                            </view>
                        </view>
                    </view>
                    <view class="bangdan-shangqi-details data-v-62c5eee3">
                        <view class="bangdan-shangqi-detailsImg data-v-62c5eee3">
                            <image class="bangdan-shangqi-tupian data-v-62c5eee3" src="https://img121.7dun.com/20230207NewImg/lingzhu/tupian.png"></image>
                            <image class="bangdan-shangqi-ren data-v-62c5eee3" :src="lastList.user && lastList.user.headimg"></image>
                        </view>
                        <view class="bangdan-shangqi-detailsbangDanObj data-v-62c5eee3">
                            <view class="bangdan-shangqi-detailsName data-v-62c5eee3">{{ '' + (lastList.user && lastList.user.name) + '' }}</view>
                        </view>
                        <view class="bangdan-shangqi-detailsCiShu data-v-62c5eee3">
                            累计
                            <text class="data-v-62c5eee3">{{ lastList.total }}</text>
                            /次
                        </view>
                    </view>
                </view>
                <view class="data-v-62c5eee3" v-if="$root.g1">
                    <view class="data-v-62c5eee3" v-for="(item, index) in bangDanObj.last_list" :key="index">
                        <view class="bangdan-up data-v-62c5eee3">
                            <view class="shangqiOne data-v-62c5eee3" v-if="item.ranking == 1">上期领主榜单 第一名</view>
                            <block v-else>
                                <view class="shangqiOne data-v-62c5eee3" v-if="item.ranking == 2">上期领主榜单 第二名</view>
                                <block v-else>
                                    <view class="shangqiOne data-v-62c5eee3" v-if="item.ranking == 3">上期领主榜单 第三名</view>
                                </block>
                            </block>
                            <view class="bangdan-arrow-down data-v-62c5eee3">
                                <view
                                    @tap="__e"
                                    class="bangdan-arrow-downOpen data-v-62c5eee3"
                                    :data-event-opts="[['tap', [['handleSQBoolClick', ['$event']]]]]"
                                    v-if="shangqiBool"
                                >
                                    <view class="bangdan-arrow-downText data-v-62c5eee3">
                                        展开
                                        <text class="new-iconfont icon-arrow-down data-v-62c5eee3"></text>
                                    </view>
                                    <view class="bangdan-arrow-downBg data-v-62c5eee3"></view>
                                </view>
                                <view
                                    @tap="__e"
                                    class="bangdan-arrow-downOpen data-v-62c5eee3"
                                    :data-event-opts="[['tap', [['handleSQBoolClick', ['$event']]]]]"
                                    v-if="index == 0 && !shangqiBool"
                                >
                                    <view class="bangdan-arrow-downText data-v-62c5eee3">
                                        收起
                                        <text class="new-iconfont icon-arrow-up data-v-62c5eee3"></text>
                                    </view>
                                    <view class="bangdan-arrow-downBg data-v-62c5eee3"></view>
                                </view>
                            </view>
                        </view>

                        <view class="bangdan-shangqi-details data-v-62c5eee3">
                            <view class="bangdan-shangqi-detailsImg data-v-62c5eee3">
                                <image class="bangdan-shangqi-tupian data-v-62c5eee3" src="https://img121.7dun.com/20230207NewImg/lingzhu/tupian.png"></image>
                                <image class="bangdan-shangqi-ren data-v-62c5eee3" :src="item.user && item.user.headimg"></image>
                            </view>
                            <view class="bangdan-shangqi-detailsbangDanObj data-v-62c5eee3">
                                <view class="bangdan-shangqi-detailsName data-v-62c5eee3">{{ '' + (item.user && item.user.name) + '' }}</view>
                            </view>
                            <view class="bangdan-shangqi-detailsCiShu data-v-62c5eee3">
                                累计
                                <text class="data-v-62c5eee3">{{ item.total }}</text>
                                /次
                            </view>
                        </view>
                    </view>
                </view>
                <view class="benqi data-v-62c5eee3">本期领主榜单</view>
                <view class="bangdan-benqiDown data-v-62c5eee3">
                    <view
                        class="benqi-details data-v-62c5eee3"
                        :style="'background-image:' + (item.ranking == 1 ? bgImgs[0] : item.ranking == 2 ? bgImgs[1] : item.ranking == 3 ? bgImgs[2] : bgImgs[3]) + ';'"
                        v-for="(item, index) in bangDanObj.list"
                        :key="index"
                    >
                        <view class="benqi-details-paiming data-v-62c5eee3">
                            <image
                                class="benqi-details-benqiOne data-v-62c5eee3"
                                src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiOne.png"
                                v-if="item.ranking == 1"
                            ></image>
                            <block v-else>
                                <image
                                    class="benqi-details-benqiOne data-v-62c5eee3"
                                    src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiThree.png"
                                    v-if="item.ranking == 2"
                                ></image>
                                <block v-else>
                                    <image
                                        class="benqi-details-benqiOne data-v-62c5eee3"
                                        src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiTwo.png"
                                        v-if="item.ranking == 3"
                                    ></image>
                                </block>
                            </block>
                            <view class="benqi-details-ranking data-v-62c5eee3" v-if="item.ranking == 1 || item.ranking == 2 || item.ranking == 3">{{ item.ranking }}</view>
                            <view class="benqi-details-rankingNo data-v-62c5eee3" v-else>{{ item.ranking }}</view>
                        </view>

                        <view class="benqi-details-touxiang data-v-62c5eee3">
                            <image class="data-v-62c5eee3" :src="item.user && item.user.headimg"></image>
                        </view>

                        <view class="benqi-details-name data-v-62c5eee3">{{ '' + (item.user && item.user.name) + '' }}</view>

                        <view class="benqi-details-num data-v-62c5eee3">
                            累计
                            <text class="data-v-62c5eee3">{{ item.total }}</text>
                            /次
                        </view>
                    </view>
                </view>
                <view class="data-v-62c5eee3" style="width: 750rpx; height: 100rpx"></view>
            </scroll-view>
            <view class="bangdan-benren data-v-62c5eee3">
                <view class="benren-bangDanObj data-v-62c5eee3">
                    <view class="benren-ranking data-v-62c5eee3">
                        <image
                            class="benren-ranking-benqiOneImg data-v-62c5eee3"
                            src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiOne.png"
                            v-if="bangDanObj.my_lord.ranking == 1"
                        ></image>
                        <block v-else>
                            <image
                                class="benren-ranking-benqiOneImg data-v-62c5eee3"
                                src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiThree.png"
                                v-if="bangDanObj.my_lord.ranking == 2"
                            ></image>
                            <block v-else>
                                <image
                                    class="benren-ranking-benqiOneImg data-v-62c5eee3"
                                    src="https://img121.7dun.com/20230207NewImg/lingzhu/benqiTwo.png"
                                    v-if="bangDanObj.my_lord.ranking == 3"
                                ></image>
                            </block>
                        </block>
                        <text class="data-v-62c5eee3" v-if="bangDanObj.my_lord.ranking == '未上榜'">未上</text>
                        <block v-else>
                            <text
                                class="benren-ranking-benqiOneText data-v-62c5eee3"
                                v-if="bangDanObj.my_lord.ranking == 1 || bangDanObj.my_lord.ranking == 2 || bangDanObj.my_lord.ranking == 3"
                            >
                                {{ bangDanObj.my_lord.ranking }}
                            </text>
                            <text class="benren-ranking-benqiOneText data-v-62c5eee3" style="margin-top: 10rpx" v-else>{{ bangDanObj.my_lord.ranking }}</text>
                        </block>
                    </view>
                    <view class="benren-img data-v-62c5eee3">
                        <image class="data-v-62c5eee3" :src="bangDanObj.my_lord.user && bangDanObj.my_lord.user.headimg"></image>
                    </view>
                    <view class="benren-name data-v-62c5eee3">{{ '' + (bangDanObj.my_lord.user && bangDanObj.my_lord.user.name) + '' }}</view>
                    <view class="benren-num data-v-62c5eee3">
                        累计
                        <text class="data-v-62c5eee3">{{ bangDanObj.my_lord.total }}</text>
                        /次
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/wuxianshang/components/bangDan'],
    {
        '303d': function (n, t, e) {
            'use strict';

            var a = e('adaa');
            e.n(a).a;
        },
        '339b': function (n, t, e) {
            'use strict';

            var a = e('4ea4');
            Object.defineProperty(t, '__esModule', {
                value: true
            });
            t.default = void 0;
            e('26cb');
            a(e('82c0'));
            var o = {
                components: {},
                data: function () {
                    return {
                        bgImgs: [
                            'url(https://img121.7dun.com/20230207NewImg/lingzhu/benqiBg.png)',
                            'url(https://img121.7dun.com/20230207NewImg/lingzhu/benqiBg-two.png)',
                            'url(https://img121.7dun.com/20230207NewImg/lingzhu/benqiBg-three.png)',
                            'url(https://img121.7dun.com/20230207NewImg/lingzhu/benqiBg-four.png)'
                        ],
                        shangqiBool: true,
                        list: [],
                        my_lord: {},
                        last_list: {},
                        lastListBool: false
                    };
                },
                props: {
                    bangDanObj: {
                        type: Object
                    },
                    lastList: {
                        type: Object
                    }
                },
                created: function () {},
                methods: {
                    cancel: function () {
                        this.$emit('close');
                    },
                    handleSQBoolClick: function () {
                        this.shangqiBool = !this.shangqiBool;
                    }
                },
                onPageScroll: function (n) {}
            };
            t.default = o;
        },
        6031: function (n, t, e) {
            'use strict';

            e.r(t);
            var a = e('7ce8');
            var o = e('6f22');
            for (var i in o) {
                if (['default'].indexOf(i) < 0) {
                    (function (n) {
                        e.d(t, n, function () {
                            return o[n];
                        });
                    })(i);
                }
            }
            e('303d');
            var s = e('f0c5');
            var c = Object(s.a)(o.default, a.b, a.c, false, null, '62c5eee3', null, false, a.a, void 0);
            t.default = c.exports;
        },
        '6f22': function (n, t, e) {
            'use strict';

            e.r(t);
            var a = e('339b');
            var o = e.n(a);
            for (var i in a) {
                if (['default'].indexOf(i) < 0) {
                    (function (n) {
                        e.d(t, n, function () {
                            return a[n];
                        });
                    })(i);
                }
            }
            t.default = o.a;
        },
        '7ce8': function (n, t, e) {
            'use strict';

            e.d(t, 'b', function () {
                return a;
            });
            e.d(t, 'c', function () {
                return o;
            });
            e.d(t, 'a', function () {});
            var a = function () {
                this.$createElement;
                var n = (this._self._c, this.bangDanObj.last_list.length > 0 && this.shangqiBool);
                var t = this.bangDanObj.last_list.length > 0 && !this.shangqiBool;
                this.setData(
                    Object.assign(
                        {},
                        {
                            $root: {
                                g0: n,
                                g1: t
                            }
                        }
                    )
                );
            };
            var o = [];
        },
        adaa: function (n, t, e) {}
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'pages/wuxianshang/components/bangDan-create-component',
    {
        'pages/wuxianshang/components/bangDan-create-component': function (n, t, e) {
            e('543d').createComponent(e('6031'));
        }
    },
    [['pages/wuxianshang/components/bangDan-create-component']]
]);
</script>
<style>
@import './bangDan.css';
</style>
